package javax.realtime;

/** @deprecated */
public class WaitFreeDequeue
{
  private WaitFreeWriteQueue writeQueue;
  private WaitFreeReadQueue readQueue;

  /** @deprecated */
  public WaitFreeDequeue(Runnable paramRunnable1, Runnable paramRunnable2, int paramInt, MemoryArea paramMemoryArea)
  {
    this.writeQueue = new WaitFreeWriteQueue(paramRunnable1, paramRunnable2, paramInt, paramMemoryArea);
    this.readQueue = new WaitFreeReadQueue(paramRunnable1, paramRunnable2, paramInt, paramMemoryArea);
  }

  /** @deprecated */
  public Object nonBlockingRead()
  {
    return this.readQueue.read();
  }

  /** @deprecated */
  public void blockingWrite(Object paramObject)
    throws InterruptedException
  {
    this.readQueue.write(paramObject);
  }

  /** @deprecated */
  public boolean nonBlockingWrite(Object paramObject)
  {
    return this.writeQueue.write(paramObject);
  }

  public Object blockingRead()
    throws InterruptedException
  {
    return this.writeQueue.read();
  }

  /** @deprecated */
  public boolean force(Object paramObject)
  {
    try
    {
      return this.writeQueue.force(paramObject); } catch (Exception localException) {
    }
    return false;
  }
}